package com.marktotop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.marktotop.entity.system.ImageAttachment;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author MarkToTop
 * @since 2021-07-12
 */
public interface ImageMapper extends BaseMapper<ImageAttachment> {

    /**
     * 条件 分页 展示全部上传图片资源
     *
     * @param page
     * @param image
     * @return
     */
    IPage<ImageAttachment> getImagesByPage(Page<ImageAttachment> page, @Param("image") ImageAttachment image);
}
